package com.ruoyi.technician.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.technician.mapper.TechnicianAuthenticationMapper;
import com.ruoyi.technician.domain.TechnicianAuthentication;
import com.ruoyi.technician.service.ITechnicianAuthenticationService;

/**
 * 资质管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class TechnicianAuthenticationServiceImpl implements ITechnicianAuthenticationService 
{
    @Autowired
    private TechnicianAuthenticationMapper technicianAuthenticationMapper;

    /**
     * 查询资质管理
     * 
     * @param id 资质管理主键
     * @return 资质管理
     */
    @Override
    public TechnicianAuthentication selectTechnicianAuthenticationById(Long id)
    {
        return technicianAuthenticationMapper.selectTechnicianAuthenticationById(id);
    }

    /**
     * 查询资质管理列表
     * 
     * @param technicianAuthentication 资质管理
     * @return 资质管理
     */
    @Override
    public List<TechnicianAuthentication> selectTechnicianAuthenticationList(TechnicianAuthentication technicianAuthentication)
    {
        return technicianAuthenticationMapper.selectTechnicianAuthenticationList(technicianAuthentication);
    }

    /**
     * 新增资质管理
     * 
     * @param technicianAuthentication 资质管理
     * @return 结果
     */
    @Override
    public int insertTechnicianAuthentication(TechnicianAuthentication technicianAuthentication)
    {
        technicianAuthentication.setCreateTime(DateUtils.getNowDate());
        return technicianAuthenticationMapper.insertTechnicianAuthentication(technicianAuthentication);
    }

    /**
     * 修改资质管理
     * 
     * @param technicianAuthentication 资质管理
     * @return 结果
     */
    @Override
    public int updateTechnicianAuthentication(TechnicianAuthentication technicianAuthentication)
    {
        technicianAuthentication.setUpdateTime(DateUtils.getNowDate());
        return technicianAuthenticationMapper.updateTechnicianAuthentication(technicianAuthentication);
    }

    /**
     * 批量删除资质管理
     * 
     * @param ids 需要删除的资质管理主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianAuthenticationByIds(Long[] ids)
    {
        return technicianAuthenticationMapper.deleteTechnicianAuthenticationByIds(ids);
    }

    /**
     * 删除资质管理信息
     * 
     * @param id 资质管理主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianAuthenticationById(Long id)
    {
        return technicianAuthenticationMapper.deleteTechnicianAuthenticationById(id);
    }
}
